using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Circus.CodeEditor.Dialogs
{
	public class DlgSearchConfirmation : Form
	{
		private IContainer components = null;
		public Label laConfirm;
		private Button btYes;
		private Button btNo;
		private Button btCancel;
		private Button btAll;
		public DlgSearchConfirmation()
		{
			this.InitializeComponent();
		}
		public static DialogResult ShowWithCaption(string caption)
		{
			DlgSearchConfirmation dlgSearchConfirmation = new DlgSearchConfirmation();
			dlgSearchConfirmation.laConfirm.Text = string.Format("Replace this occurrence of {0}", caption);
			DialogResult result = dlgSearchConfirmation.ShowDialog();
			dlgSearchConfirmation.Dispose();
			return result;
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.laConfirm = new Label();
			this.btYes = new Button();
			this.btNo = new Button();
			this.btCancel = new Button();
			this.btAll = new Button();
			base.SuspendLayout();
			this.laConfirm.AutoSize = true;
			this.laConfirm.Location = new Point(14, 17);
			this.laConfirm.Name = "laConfirm";
			this.laConfirm.Size = new Size(123, 13);
			this.laConfirm.TabIndex = 0;
			this.laConfirm.Text = "Replace this occurrence";
			this.btYes.DialogResult = DialogResult.Yes;
			this.btYes.Location = new Point(12, 46);
			this.btYes.Name = "btYes";
			this.btYes.Size = new Size(75, 23);
			this.btYes.TabIndex = 1;
			this.btYes.Text = "&Yes";
			this.btYes.UseVisualStyleBackColor = true;
			this.btNo.DialogResult = DialogResult.No;
			this.btNo.Location = new Point(93, 46);
			this.btNo.Name = "btNo";
			this.btNo.Size = new Size(75, 23);
			this.btNo.TabIndex = 2;
			this.btNo.Text = "&No";
			this.btNo.UseVisualStyleBackColor = true;
			this.btCancel.DialogResult = DialogResult.Cancel;
			this.btCancel.Location = new Point(174, 46);
			this.btCancel.Name = "btCancel";
			this.btCancel.Size = new Size(75, 23);
			this.btCancel.TabIndex = 3;
			this.btCancel.Text = "Cancel";
			this.btCancel.UseVisualStyleBackColor = true;
			this.btAll.DialogResult = DialogResult.OK;
			this.btAll.Location = new Point(255, 46);
			this.btAll.Name = "btAll";
			this.btAll.Size = new Size(75, 23);
			this.btAll.TabIndex = 4;
			this.btAll.Text = "&All";
			this.btAll.UseVisualStyleBackColor = true;
			base.AcceptButton = this.btYes;
			base.AutoScaleDimensions = new SizeF(6f, 13f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.CancelButton = this.btCancel;
			base.ClientSize = new Size(344, 88);
			base.Controls.Add(this.btAll);
			base.Controls.Add(this.btCancel);
			base.Controls.Add(this.btNo);
			base.Controls.Add(this.btYes);
			base.Controls.Add(this.laConfirm);
			base.Name = "DlgSearchConfirmation";
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "Confirm";
			base.TopMost = true;
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
